<template>
  <div id="app">
    <header>
      <div id="nav">
        <router-link to="/home">首页</router-link>
        <router-link to="/class">分类书库</router-link>
        <router-link to="/rank">排行榜单</router-link>
      </div>
    </header>
    <router-view />
  </div>
</template>

<style lang="scss">
* {
  margin: 0;
  padding: 0;
  list-style: none;
  box-sizing: border-box;
}
html,body,#app{
  width: 100%;
  height: 100%;
}
header {
  width: 100%;
  height: 200px;
  background-color: #4ba474;
}
a{
  text-decoration: none;
}
#nav{
  line-height: 60px;
  a{
    text-align: center;
    display: inline-block;
    margin-top: 140px;
    font-size: 20px;
    color: #fff;
    font-weight: bold;
    width: 100px;
    height: 60px;
  }
  .router-link-active{
      background-color:#3e8663 ;
    }
}


</style>
